package com.example.everying.service.user;

import com.baomidou.mybatisplus.core.metadata.IPage;
import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.example.everying.model.entity.user.ActivityPointsConfig;
import com.example.everying.model.vo.user.SignRewardVO;
import com.example.everying.model.vo.points.ActivityPointsConfigListVo;
import com.example.everying.utils.Result;

import java.util.List;

/**
 * 活动积分配置Service接口
 */
public interface ActivityPointsConfigService extends IService<ActivityPointsConfig> {
    boolean checkActivityById(Long configId);

    boolean checkActivityConfigById(Long configId);

    Result<?> add(ActivityPointsConfig config);
    Result<?> update(ActivityPointsConfig config);

    boolean handleSignReward(String userId, int continuousDays);
    IPage<ActivityPointsConfig> selectPage(Page<ActivityPointsConfig> pageParam, ActivityPointsConfig query);

    List<SignRewardVO> getTodayContinuousDays(String userId);

    ActivityPointsConfig getRewardConfigByType(String everydayUserPublishPoints);

    Result<?> getCarouselImage();

    List<ActivityPointsConfigListVo> selectActivityList(String id);

    void cleanExpiredPoints();
}
